using Linyou.Net7.WebMinimalAPI;
using Linyou.Net7.WebMinimalAPI.Utility.SwaggerExt;

var builder = WebApplication.CreateBuilder(args);

// Add services to the container.
// Learn more about configuring Swabgger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
builder.Services.AddAuthorization();

builder.AddSwagger();

WebApplication app = builder.Build();

app.UserSwagger();

app.UseHttpsRedirection();

app.UseAuthorization();

app.UserAPI();

app.Run();
